<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/2/6
 * Time: 19:15
 */

namespace Home\Controller;
use Think\Controller;

class LybController extends Controller{
    public function _initialize(){
        header("content-type:text/html; charset=utf-8");
        $flag = session("?Account");
        if(!$flag){
            $this->error("非法登录",U('Home/Index/index'));
        }
    }

    public function index(){
        $this->assign("title","留言板");
        $this->display();
    }
}